#include "common.h"
#include "VMain.h"

#if defined(WIN32) && !defined(_CRTDBG_LEAK_CHECK_DF)
#define _CRTDBG_LEAK_CHECK_DF
#endif  //  defined(WIN32) && !defined(_CRTDBG_LEAK_CHECK_DF)

#ifndef UNDER_CE
int main(int, char**)
#else   /* UNDER_CE */
int _tmain(int argc, _TCHAR* argv[])
#endif /* UNDER_CE */
{
    VMain m;

    m.init();
    m.debugTest();
    m.exec();

#if defined(WIN32) && defined(_CRTDBG_LEAK_CHECK_DF)&& !defined UNDER_CE

    _CrtDumpMemoryLeaks();

#endif  // defined(WIN32) && defined(_CRTDBG_LEAK_CHECK_DF)

    return 0;
}
